package org.cheetah.spring.xml;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

public class NamespaceHandlerImpl extends NamespaceHandlerSupport {

	public void init() {
		registerBeanDefinitionParser("service", new ServiceDefinitionParser());

		registerBeanDefinitionParser("call-method",
				new CallMethodDefinitionParser());
		registerBeanDefinitionParser("call-service",
				new CallServiceDefinitionParser());

		registerBeanDefinitionParser("set-in", new SetInDefinitionParser());
		registerBeanDefinitionParser("set-out", new SetOutDefinitionParser());

		registerBeanDefinitionParser("set-in-header",
				new SetInHeaderDefinitionParser());
		registerBeanDefinitionParser("unset-in-header",
				new UnsetInHeaderDefinitionParser());

		registerBeanDefinitionParser("set-out-header",
				new SetInHeaderDefinitionParser());
		registerBeanDefinitionParser("unset-out-header",
				new UnsetInHeaderDefinitionParser());

		registerBeanDefinitionParser("set-var", new SetVarDefinitionParser());
		registerBeanDefinitionParser("unset-var",
				new UnsetVarDefinitionParser());

		registerBeanDefinitionParser("eval", new EvalDefinitionParser());
		registerBeanDefinitionParser("block-eval",
				new BlockEvalDefinitionParser());

		registerBeanDefinitionParser("log", new LogDefinitionParser());
		registerBeanDefinitionParser("noop", new NoopDefinitionParser());

		registerBeanDefinitionParser("if", new IfDefinitionParser());
		registerBeanDefinitionParser("switch", new SwitchDefinitionParser());
	}
}
